package com.ssc.manager.trading.dto;

import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

import com.ssc.manager.admin.entity.db.Bet;
import com.ssc.manager.admin.entity.db.Play;
import com.ssc.manager.common.constant.SystemConstant;
import com.ssc.manager.common.system.SystemData;
import com.ssc.manager.common.utils.BetiingUtils;

public class test {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Bet bet = new Bet();
		Play play  = SystemData.findPlay(String.valueOf(1));
		bet.setOnlyCode("11");
		bet.setPlayId(1);
		bet.setUserId(1);
		bet.setItemCode("DA");
		bet.setItemName("DA");
		bet.setReverseCode("XIAO");
		bet.setTradeType("1");
		bet.setOrlMoney(100.0);
		bet.setOdds(1.2D);
		bet.setStatus(SystemConstant.BET_BEGIN);
		
		
		Bet bet2 = new Bet();
		bet2.setOnlyCode("11");
		bet2.setPlayId(1);
		bet2.setUserId(1);
		bet2.setItemCode("DA");
		bet2.setItemName("DA");
		bet2.setReverseCode("XIAO");
		bet2.setTradeType("1");
		bet2.setOrlMoney(100.0);
		bet2.setOdds(1.2D);
		bet2.setStatus(SystemConstant.BET_BEGIN);
		
		bet2.setOrlMoney(bet2.getOrlMoney()+1);
		bet.setOrlMoney(bet.getOrlMoney());
		
		System.out.println(bet.getOrlMoney()-1.123);
		
	/*	String oddskey = BetiingUtils.findBetKey(bet.getItemCode(), bet.getTradeType());
		
		SystemData.addBet(bet);
		
		SystemData.findOddsList(oddskey);*/
		
	}

}
